import baseRequest from './request'


//我的车辆列表
export function PageList({ data = {}, hasLoading = true } = {}) {
  return baseRequest({
    url: '/Vehicle/PageList',
    method: 'POST',
    data,
    hasLoading
  })
}
//新增车辆
export function Add({ data = {}, hasLoading = true } = {}) {
  return baseRequest({
    url: '/Vehicle/Add',
    method: 'POST',
    needLogin: true,
    data,
    hasLoading
  })
}
//获取规则
export function MonthPriceInfo({ data = {}, hasLoading = true } = {}) {
  return baseRequest({
    url: '/Vehicle/MonthPriceInfo',
    method: 'GET',
    data,
    hasLoading
  })
}
//车辆详情
export function Detail({ data = {}, hasLoading = true } = {}) {
  return baseRequest({
    url: '/Vehicle/Detail',
    method: 'GET',
    data,
    hasLoading
  })
}
//删除车辆
export function Delete({ data = {}, hasLoading = true } = {}) {
  return baseRequest({
    url: '/Vehicle/Delete',
    method: 'GET',
    data,
    hasLoading
  })
}

//通过手机号检索车辆
export function QueryByPhone({ data = {}, hasLoading = true } = {}) {
  return baseRequest({
    url: '/Vehicle/QueryByPhone',
    method: 'GET',
    data,
    hasLoading
  })
}
//通过会员id检索车辆
export function QueryByMemberId({ data = {}, hasLoading = true } = {}) {
  return baseRequest({
    url: '/Vehicle/QueryByMemberId',
    method: 'GET',
    data,
    hasLoading
  })
}

export function Pay({ data = {}, hasLoading = true } = {}) {
  return baseRequest({
    url: '/Vehicle/Pay',
    method: 'POST',
    needLogin: true,
    data,
    hasLoading
  })
}

export function HelpAdd({ data = {}, hasLoading = true } = {}) {
  return baseRequest({
    url: '/Vehicle/HelpAdd',
    method: 'POST',
    needLogin: true,
    data,
    hasLoading
  })
}


export function UpdatePicture({ data = {}, hasLoading = true } = {}) {
  return baseRequest({
    url: '/Vehicle/UpdatePicture',
    method: 'POST',
    data,
    hasLoading,
    needLogin: true
  })
}
